/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author HTH2207
 */
@Entity
@Table(name = "Basics")
@NamedQueries({
    @NamedQuery(name = "Basics.findAll", query = "SELECT b FROM Basics b"),
    @NamedQuery(name = "Basics.findById", query = "SELECT b FROM Basics b WHERE b.id = :id"),
    @NamedQuery(name = "Basics.findByEnglish", query = "SELECT b FROM Basics b WHERE b.english = :english"),
    @NamedQuery(name = "Basics.findByVietNamese", query = "SELECT b FROM Basics b WHERE b.vietNamese = :vietNamese"),
    @NamedQuery(name = "Basics.findByAudio", query = "SELECT b FROM Basics b WHERE b.audio = :audio"),
    @NamedQuery(name = "Basics.findByImage", query = "SELECT b FROM Basics b WHERE b.image = :image")})
public class Basics implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID")
    private String id;
    @Column(name = "English")
    private String english;
    @Column(name = "VietNamese")
    private String vietNamese;
    @Column(name = "Audio")
    private String audio;
    @Column(name = "Image")
    private String image;

    public Basics() {
    }

    public Basics(String id, String english, String vietNamese, String audio, String image) {
        this.id = id;
        this.english = english;
        this.vietNamese = vietNamese;
        this.audio = audio;
        this.image = image;
    }



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEnglish() {
        return english;
    }

    public void setEnglish(String english) {
        this.english = english;
    }

    public String getVietNamese() {
        return vietNamese;
    }

    public void setVietNamese(String vietNamese) {
        this.vietNamese = vietNamese;
    }

    public String getAudio() {
        return audio;
    }

    public void setAudio(String audio) {
        this.audio = audio;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Basics)) {
            return false;
        }
        Basics other = (Basics) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.Basics[id=" + id + "]";
    }

}
